package cn.itcast.day05.demo04;

public class demostudent1 {
    public static void main(String[] args) {
        student stu1=new student();
        stu1.setName("迪丽热巴");
        stu1.setAge(20);
        System.out.println("姓名"+stu1.getName()+",年龄："+stu1.getAge());
        System.out.println("===============");

        student stu2=new student();
        stu2=stu1;
        System.out.println("姓名"+stu2.getName()+",年龄："+stu2.getAge());
        stu2.setName("王尼玛");
        System.out.println("姓名"+stu2.getName()+",年龄："+stu2.getAge());

    }
}
